Document Solutions for Imaging
GrapeCity.Documents.Imaging Assembly / GrapeCity.Documents.Layout.Composition Namespace / Surface Class / CreateView Method / CreateView(Single,Single,Action<GcGraphics,Layer>) Method
The width of the associated GrapeCity.Documents.Layout.LayoutView.
The height of the associated GrapeCity.Documents.Layout.LayoutView.
A delegate that accepts a GrapeCity.Documents.Drawing.GcGraphics object and a Layer, and draws the layer on the graphics.

In This Topic
    CreateView(Single,Single,Action<GcGraphics,Layer>) Method
    In This Topic
    Creates a View object that encapsulates a GrapeCity.Documents.Layout.LayoutView and adds it as the top layer.
    Syntax
    'Declaration
     
    Public Overloads Function CreateView( _
       ByVal width As System.Single, _
       ByVal height As System.Single, _
       ByVal draw As System.Action(Of GcGraphics,Layer) _
    ) As View
    public View CreateView( 
       System.float width,
       System.float height,
       System.Action<GcGraphics,Layer> draw
    )

    Parameters

    width
    The width of the associated GrapeCity.Documents.Layout.LayoutView.
    height
    The height of the associated GrapeCity.Documents.Layout.LayoutView.
    draw
    A delegate that accepts a GrapeCity.Documents.Drawing.GcGraphics object and a Layer, and draws the layer on the graphics.
    See Also